package com.chennan.test;

import com.github.sisyphsu.dateparser.DateParser;
import org.apache.commons.exec.ExecuteStreamHandler;

import java.awt.dnd.DropTarget;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.time.temporal.TemporalAccessor;
import java.time.temporal.TemporalUnit;
import java.util.*;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.ThreadPoolExecutor;

/**
 * @author chennan
 * @create 2021-07
 */
public class Neictest {
    public static void main(String[] args) {

//        int[] arr = new int[1024*1024*50];
//        long l = System.currentTimeMillis();
//        for (int i = 0; i < arr.length; i++) {
//            arr[i]=i*2;
//        }
//        System.out.println(System.currentTimeMillis()-l);
//
//        int[] arr2 = new int[1024*1024*50];
//        long l1 = System.currentTimeMillis();
//        for (int i = 0; i < arr.length; i+=30) {
//            arr2[i]=i*2;
//        }
//        System.out.println(System.currentTimeMillis()-l1);
//        for (long i = 1200000-299999; i <= 1090000; i += 200) {
//            System.out.println(i+","+(i+199));
//        }
//        for (int i = 900000; i <= 1037385; i+=200) {
//            if(i+199>1037385){
//                System.out.println(1037385);
//
//            }else{
//                System.out.println(i+199);
//
//            }
//
//        }
//        HashSet<Object> objects = new HashSet<>();
//        Map<Integer,Integer> map = new HashMap<>();
//        map.containsKey(i);
//        new ThreadPoolExecutor()
//        objects.contains()
//        int[] aaa=new int[]{1,2,3};
//        System.out.println(20^21);
//        for (int i = 1; i <= 10000; i+=200) {
//            System.out.println(i+","+(i+199));
////            executeTask(Long.parseLong(i+""),Long.parseLong(""+(i+100)));
//        }

//        for (int i = 0; i < 10; i++) {
//            System.out.println(UUID.randomUUID());
//        }

//        String str ="04-MAY-14 10.33.58.493 AM";
//
//        System.out.println(LocalDateTime.parse(str, DateTimeFormatter.ofPattern("dd-MM-yy hh.mm.ss.SSS MM")));
        DateParser parser = DateParser.newBuilder().build();
        LocalDateTime date = parser.parseDateTime("04-MAY-14 10.33.58.493 AM");
        System.out.println(date);
    }
}
